home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(this.acceso == false)
- {
- _root.gamestopped = true;
- }
- else
- {
- _root.gamestopped = false;
- }
- if(this.acceso == true)
- {
- _root.timeleftformatted = Math.formatDecimals(_root.timeleft,1);
- if(lasttime == undefined)
- {
- lasttime = getTimer();
- }
- if(getTimer() > lasttime + 100)
- {
- _root.timeleft -= 0.1;
- lasttime = getTimer();
- }
- }
- if(_root.timeleft <= 0)
- {
- _root.timeleftformatted = Math.formatDecimals(0,1);
- _root.timeover = true;
- }
- }
-